package animix.blue.server.user.service;

import animix.blue.server.common.bean.pojo.Result;
import animix.blue.server.common.bean.model.User;

import java.util.Map;

public interface UserService {

    Result login(String username, String password);

    Result login(String username, String password, Boolean remember);

    Result getInfoByToken(String token);

    Result logout(String token);

    Result list(Map<String, Object> para);

    Result getById(Integer id);

    Result add(User user);

    Result updateById(User user);

    Result deleteById(Integer id);

    Result deleteByIds(Integer[] ids);

    Result resetPwdByIds(Integer[] ids);

    Result disableByIds(Integer[] ids);
}
